import request from '@/router/axios';
import { baseUrl } from '@/config/env';

export const listPage = (query) => request({
    url: baseUrl + '/activiti/model/page',
    method: 'get',
    params: query
});

export const addModel = (data) => request({
    url: baseUrl + '/activiti/model/add',
    method: 'post',
    data: data
});

export const deleteModel = (id) => request({
    url: baseUrl + '/activiti/model/delete/' + id,
    method: 'delete',
});

export const deployModel = (id) => request({
    url: baseUrl + '/activiti/model/deploy/' + id,
    method: 'get',
});
